package com.joymart.qualification.model;

import com.joymart.common.abstraction.StatusHolder;
import com.joymart.common.model.ApprovalStatus;
import com.joymart.user.model.BusinessRole;
import lombok.Data;
import org.json.JSONObject;
import org.springframework.data.annotation.Id;

import java.time.LocalDateTime;

@Data
public class QualificationApplication implements StatusHolder<ApprovalStatus> {

    @Id
    private String id;
    //申请人ID
    private String applicantId;
    private BusinessRole targetRole;
    private JSONObject meta;
    //签名图片地址
    private String signatureUrl;
    //协议ID
    private String protocolId;
    private String comment;
    //审批状态
    private ApprovalStatus status;
    private LocalDateTime createdAt;
    //审批人ID
    private String decidedBy;
    // 审批时间
    private LocalDateTime decidedAt;

}
